import { resolve } from 'path';

const isDev = process.env.NODE_ENV === 'development';

export default () => ({
  db: {
    uri: 'mongodb://112.47.58.57:27017',
    auth: {
      dbName: 'dexio',
      user: 'dexio-cms-user',
      pass: '!@#qwe456'
    },
  },
  publicPath: resolve(process.cwd(), 'public'),
  domain: isDev ? 'http://localhost:3000' : '',
  localeKey: 'locale',
  jwt: {
    key: 'dex-io-cms-key',
    secret: 'dex-io-cms-secret',
    expiresIn: 7 * 24 * 60 * 1000,
  },
});
